package com.zed.code.model;

import java.util.ArrayList;
import java.util.List;

public class TPricepartdescExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TPricepartdescExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andStationidIsNull() {
            addCriterion("StationID is null");
            return (Criteria) this;
        }

        public Criteria andStationidIsNotNull() {
            addCriterion("StationID is not null");
            return (Criteria) this;
        }

        public Criteria andStationidEqualTo(String value) {
            addCriterion("StationID =", value, "stationid");
            return (Criteria) this;
        }

        public Criteria andStationidNotEqualTo(String value) {
            addCriterion("StationID <>", value, "stationid");
            return (Criteria) this;
        }

        public Criteria andStationidGreaterThan(String value) {
            addCriterion("StationID >", value, "stationid");
            return (Criteria) this;
        }

        public Criteria andStationidGreaterThanOrEqualTo(String value) {
            addCriterion("StationID >=", value, "stationid");
            return (Criteria) this;
        }

        public Criteria andStationidLessThan(String value) {
            addCriterion("StationID <", value, "stationid");
            return (Criteria) this;
        }

        public Criteria andStationidLessThanOrEqualTo(String value) {
            addCriterion("StationID <=", value, "stationid");
            return (Criteria) this;
        }

        public Criteria andStationidLike(String value) {
            addCriterion("StationID like", value, "stationid");
            return (Criteria) this;
        }

        public Criteria andStationidNotLike(String value) {
            addCriterion("StationID not like", value, "stationid");
            return (Criteria) this;
        }

        public Criteria andStationidIn(List<String> values) {
            addCriterion("StationID in", values, "stationid");
            return (Criteria) this;
        }

        public Criteria andStationidNotIn(List<String> values) {
            addCriterion("StationID not in", values, "stationid");
            return (Criteria) this;
        }

        public Criteria andStationidBetween(String value1, String value2) {
            addCriterion("StationID between", value1, value2, "stationid");
            return (Criteria) this;
        }

        public Criteria andStationidNotBetween(String value1, String value2) {
            addCriterion("StationID not between", value1, value2, "stationid");
            return (Criteria) this;
        }

        public Criteria andEquipmentidIsNull() {
            addCriterion("EquipmentID is null");
            return (Criteria) this;
        }

        public Criteria andEquipmentidIsNotNull() {
            addCriterion("EquipmentID is not null");
            return (Criteria) this;
        }

        public Criteria andEquipmentidEqualTo(String value) {
            addCriterion("EquipmentID =", value, "equipmentid");
            return (Criteria) this;
        }

        public Criteria andEquipmentidNotEqualTo(String value) {
            addCriterion("EquipmentID <>", value, "equipmentid");
            return (Criteria) this;
        }

        public Criteria andEquipmentidGreaterThan(String value) {
            addCriterion("EquipmentID >", value, "equipmentid");
            return (Criteria) this;
        }

        public Criteria andEquipmentidGreaterThanOrEqualTo(String value) {
            addCriterion("EquipmentID >=", value, "equipmentid");
            return (Criteria) this;
        }

        public Criteria andEquipmentidLessThan(String value) {
            addCriterion("EquipmentID <", value, "equipmentid");
            return (Criteria) this;
        }

        public Criteria andEquipmentidLessThanOrEqualTo(String value) {
            addCriterion("EquipmentID <=", value, "equipmentid");
            return (Criteria) this;
        }

        public Criteria andEquipmentidLike(String value) {
            addCriterion("EquipmentID like", value, "equipmentid");
            return (Criteria) this;
        }

        public Criteria andEquipmentidNotLike(String value) {
            addCriterion("EquipmentID not like", value, "equipmentid");
            return (Criteria) this;
        }

        public Criteria andEquipmentidIn(List<String> values) {
            addCriterion("EquipmentID in", values, "equipmentid");
            return (Criteria) this;
        }

        public Criteria andEquipmentidNotIn(List<String> values) {
            addCriterion("EquipmentID not in", values, "equipmentid");
            return (Criteria) this;
        }

        public Criteria andEquipmentidBetween(String value1, String value2) {
            addCriterion("EquipmentID between", value1, value2, "equipmentid");
            return (Criteria) this;
        }

        public Criteria andEquipmentidNotBetween(String value1, String value2) {
            addCriterion("EquipmentID not between", value1, value2, "equipmentid");
            return (Criteria) this;
        }

        public Criteria andTimedescIsNull() {
            addCriterion("TimeDesc is null");
            return (Criteria) this;
        }

        public Criteria andTimedescIsNotNull() {
            addCriterion("TimeDesc is not null");
            return (Criteria) this;
        }

        public Criteria andTimedescEqualTo(String value) {
            addCriterion("TimeDesc =", value, "timedesc");
            return (Criteria) this;
        }

        public Criteria andTimedescNotEqualTo(String value) {
            addCriterion("TimeDesc <>", value, "timedesc");
            return (Criteria) this;
        }

        public Criteria andTimedescGreaterThan(String value) {
            addCriterion("TimeDesc >", value, "timedesc");
            return (Criteria) this;
        }

        public Criteria andTimedescGreaterThanOrEqualTo(String value) {
            addCriterion("TimeDesc >=", value, "timedesc");
            return (Criteria) this;
        }

        public Criteria andTimedescLessThan(String value) {
            addCriterion("TimeDesc <", value, "timedesc");
            return (Criteria) this;
        }

        public Criteria andTimedescLessThanOrEqualTo(String value) {
            addCriterion("TimeDesc <=", value, "timedesc");
            return (Criteria) this;
        }

        public Criteria andTimedescLike(String value) {
            addCriterion("TimeDesc like", value, "timedesc");
            return (Criteria) this;
        }

        public Criteria andTimedescNotLike(String value) {
            addCriterion("TimeDesc not like", value, "timedesc");
            return (Criteria) this;
        }

        public Criteria andTimedescIn(List<String> values) {
            addCriterion("TimeDesc in", values, "timedesc");
            return (Criteria) this;
        }

        public Criteria andTimedescNotIn(List<String> values) {
            addCriterion("TimeDesc not in", values, "timedesc");
            return (Criteria) this;
        }

        public Criteria andTimedescBetween(String value1, String value2) {
            addCriterion("TimeDesc between", value1, value2, "timedesc");
            return (Criteria) this;
        }

        public Criteria andTimedescNotBetween(String value1, String value2) {
            addCriterion("TimeDesc not between", value1, value2, "timedesc");
            return (Criteria) this;
        }

        public Criteria andSlotelecpriceIsNull() {
            addCriterion("SlotElecPrice is null");
            return (Criteria) this;
        }

        public Criteria andSlotelecpriceIsNotNull() {
            addCriterion("SlotElecPrice is not null");
            return (Criteria) this;
        }

        public Criteria andSlotelecpriceEqualTo(Float value) {
            addCriterion("SlotElecPrice =", value, "slotelecprice");
            return (Criteria) this;
        }

        public Criteria andSlotelecpriceNotEqualTo(Float value) {
            addCriterion("SlotElecPrice <>", value, "slotelecprice");
            return (Criteria) this;
        }

        public Criteria andSlotelecpriceGreaterThan(Float value) {
            addCriterion("SlotElecPrice >", value, "slotelecprice");
            return (Criteria) this;
        }

        public Criteria andSlotelecpriceGreaterThanOrEqualTo(Float value) {
            addCriterion("SlotElecPrice >=", value, "slotelecprice");
            return (Criteria) this;
        }

        public Criteria andSlotelecpriceLessThan(Float value) {
            addCriterion("SlotElecPrice <", value, "slotelecprice");
            return (Criteria) this;
        }

        public Criteria andSlotelecpriceLessThanOrEqualTo(Float value) {
            addCriterion("SlotElecPrice <=", value, "slotelecprice");
            return (Criteria) this;
        }

        public Criteria andSlotelecpriceIn(List<Float> values) {
            addCriterion("SlotElecPrice in", values, "slotelecprice");
            return (Criteria) this;
        }

        public Criteria andSlotelecpriceNotIn(List<Float> values) {
            addCriterion("SlotElecPrice not in", values, "slotelecprice");
            return (Criteria) this;
        }

        public Criteria andSlotelecpriceBetween(Float value1, Float value2) {
            addCriterion("SlotElecPrice between", value1, value2, "slotelecprice");
            return (Criteria) this;
        }

        public Criteria andSlotelecpriceNotBetween(Float value1, Float value2) {
            addCriterion("SlotElecPrice not between", value1, value2, "slotelecprice");
            return (Criteria) this;
        }

        public Criteria andSlotservicepriceIsNull() {
            addCriterion("SlotServicePrice is null");
            return (Criteria) this;
        }

        public Criteria andSlotservicepriceIsNotNull() {
            addCriterion("SlotServicePrice is not null");
            return (Criteria) this;
        }

        public Criteria andSlotservicepriceEqualTo(Float value) {
            addCriterion("SlotServicePrice =", value, "slotserviceprice");
            return (Criteria) this;
        }

        public Criteria andSlotservicepriceNotEqualTo(Float value) {
            addCriterion("SlotServicePrice <>", value, "slotserviceprice");
            return (Criteria) this;
        }

        public Criteria andSlotservicepriceGreaterThan(Float value) {
            addCriterion("SlotServicePrice >", value, "slotserviceprice");
            return (Criteria) this;
        }

        public Criteria andSlotservicepriceGreaterThanOrEqualTo(Float value) {
            addCriterion("SlotServicePrice >=", value, "slotserviceprice");
            return (Criteria) this;
        }

        public Criteria andSlotservicepriceLessThan(Float value) {
            addCriterion("SlotServicePrice <", value, "slotserviceprice");
            return (Criteria) this;
        }

        public Criteria andSlotservicepriceLessThanOrEqualTo(Float value) {
            addCriterion("SlotServicePrice <=", value, "slotserviceprice");
            return (Criteria) this;
        }

        public Criteria andSlotservicepriceIn(List<Float> values) {
            addCriterion("SlotServicePrice in", values, "slotserviceprice");
            return (Criteria) this;
        }

        public Criteria andSlotservicepriceNotIn(List<Float> values) {
            addCriterion("SlotServicePrice not in", values, "slotserviceprice");
            return (Criteria) this;
        }

        public Criteria andSlotservicepriceBetween(Float value1, Float value2) {
            addCriterion("SlotServicePrice between", value1, value2, "slotserviceprice");
            return (Criteria) this;
        }

        public Criteria andSlotservicepriceNotBetween(Float value1, Float value2) {
            addCriterion("SlotServicePrice not between", value1, value2, "slotserviceprice");
            return (Criteria) this;
        }

        public Criteria andSlotpriceIsNull() {
            addCriterion("SlotPrice is null");
            return (Criteria) this;
        }

        public Criteria andSlotpriceIsNotNull() {
            addCriterion("SlotPrice is not null");
            return (Criteria) this;
        }

        public Criteria andSlotpriceEqualTo(Float value) {
            addCriterion("SlotPrice =", value, "slotprice");
            return (Criteria) this;
        }

        public Criteria andSlotpriceNotEqualTo(Float value) {
            addCriterion("SlotPrice <>", value, "slotprice");
            return (Criteria) this;
        }

        public Criteria andSlotpriceGreaterThan(Float value) {
            addCriterion("SlotPrice >", value, "slotprice");
            return (Criteria) this;
        }

        public Criteria andSlotpriceGreaterThanOrEqualTo(Float value) {
            addCriterion("SlotPrice >=", value, "slotprice");
            return (Criteria) this;
        }

        public Criteria andSlotpriceLessThan(Float value) {
            addCriterion("SlotPrice <", value, "slotprice");
            return (Criteria) this;
        }

        public Criteria andSlotpriceLessThanOrEqualTo(Float value) {
            addCriterion("SlotPrice <=", value, "slotprice");
            return (Criteria) this;
        }

        public Criteria andSlotpriceIn(List<Float> values) {
            addCriterion("SlotPrice in", values, "slotprice");
            return (Criteria) this;
        }

        public Criteria andSlotpriceNotIn(List<Float> values) {
            addCriterion("SlotPrice not in", values, "slotprice");
            return (Criteria) this;
        }

        public Criteria andSlotpriceBetween(Float value1, Float value2) {
            addCriterion("SlotPrice between", value1, value2, "slotprice");
            return (Criteria) this;
        }

        public Criteria andSlotpriceNotBetween(Float value1, Float value2) {
            addCriterion("SlotPrice not between", value1, value2, "slotprice");
            return (Criteria) this;
        }

        public Criteria andSlotflagIsNull() {
            addCriterion("SlotFlag is null");
            return (Criteria) this;
        }

        public Criteria andSlotflagIsNotNull() {
            addCriterion("SlotFlag is not null");
            return (Criteria) this;
        }

        public Criteria andSlotflagEqualTo(String value) {
            addCriterion("SlotFlag =", value, "slotflag");
            return (Criteria) this;
        }

        public Criteria andSlotflagNotEqualTo(String value) {
            addCriterion("SlotFlag <>", value, "slotflag");
            return (Criteria) this;
        }

        public Criteria andSlotflagGreaterThan(String value) {
            addCriterion("SlotFlag >", value, "slotflag");
            return (Criteria) this;
        }

        public Criteria andSlotflagGreaterThanOrEqualTo(String value) {
            addCriterion("SlotFlag >=", value, "slotflag");
            return (Criteria) this;
        }

        public Criteria andSlotflagLessThan(String value) {
            addCriterion("SlotFlag <", value, "slotflag");
            return (Criteria) this;
        }

        public Criteria andSlotflagLessThanOrEqualTo(String value) {
            addCriterion("SlotFlag <=", value, "slotflag");
            return (Criteria) this;
        }

        public Criteria andSlotflagLike(String value) {
            addCriterion("SlotFlag like", value, "slotflag");
            return (Criteria) this;
        }

        public Criteria andSlotflagNotLike(String value) {
            addCriterion("SlotFlag not like", value, "slotflag");
            return (Criteria) this;
        }

        public Criteria andSlotflagIn(List<String> values) {
            addCriterion("SlotFlag in", values, "slotflag");
            return (Criteria) this;
        }

        public Criteria andSlotflagNotIn(List<String> values) {
            addCriterion("SlotFlag not in", values, "slotflag");
            return (Criteria) this;
        }

        public Criteria andSlotflagBetween(String value1, String value2) {
            addCriterion("SlotFlag between", value1, value2, "slotflag");
            return (Criteria) this;
        }

        public Criteria andSlotflagNotBetween(String value1, String value2) {
            addCriterion("SlotFlag not between", value1, value2, "slotflag");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}